
import {Component} from 'react';
import {connect} from 'dva';

const mapStateToProps  = (state) => {
  const loading  = state['index'].loading;
  return {
    loading: loading
  }
}


const mapDispatchToProps  = (dispatch) => {
  console.log('..');
  return {

  }
}


@connect(mapStateToProps, mapDispatchToProps)
export default class App extends Component{

  render(){
    return (
      <div>
        <h1> Welcom to Organism!</h1>
      </div>
    );
  }
}
